<admintpl file="header" />
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  <div class="nav">
    <ul class="cc">
      <li class="current"><a href="{:U('navcat/index')}">菜单分类</a></li>
      <li><a href="{:U('navcat/add')}">添加分类</a></li>
    </ul>
  </div>
  <form class="J_ajaxForm" action="" method="post">
    <div class="table_list">
      <table width="100%">
        <thead>
	          <tr>
	            <td width="100">ID</td>
	            <td>名称</td>
	            <td>描述</td>
	            <td width="120">主菜单</td>
	            <td width="120">操作</td>
	          </tr>
        </thead>
        	<foreach name="navcats" item="vo">
	        	<tr>
		            <td>{$vo.navcid}</td>
		            <td>{$vo.name}</td>
	            	<td>{$vo.remark}</td>
	            	<td>
					<php>$mainmenu=$vo['active']?"是":"否";</php>
					{$mainmenu}
					</td>
		            <td>
		            	<a href="{:U('navcat/edit',array('id'=>$vo['navcid']))}">修改</a>|
		            	<a href="{:U('navcat/delete',array('id'=>$vo['navcid']))}" class="J_ajax_del" >删除</a>
					</td>
	          	</tr>
          </foreach>
          </table>
      <div class="p10"><div class="pages">  </div> </div>
     
    </div>
  	</form>
</div>
<script src="__ROOT__/statics/js/common.js?{$js_debug}"></script>
</body>
</html>